<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<html>
    <head>
        <title>Autent&iacute;quese</title>
        <link type="text/css" href="../resources/css/admin-mantenimiento-style.css" rel="stylesheet" media="screen"/>
    </head>
    <body>
        <f:view>
            <h:form id="frmLogin">
                <h:outputText value="#{loginMB.mensaje}" />
                <rich:panel styleClass="pnlOpcMantenimiento"  >
                    <f:facet name="header">
                        <h:outputText value="Login" />
                    </f:facet>
                    <h:panelGrid columns="2" style="width:250px">
                        <h:outputText value="Usuario : " />
                        <h:inputText id="txtUsuario" required="true" value="#{loginMB.usuario}" />

                        <h:outputText value="Password : " />
                        <h:inputSecret id="txtPassword" required="true" value="#{loginMB.password}" />

                        <rich:spacer height="15" />
                        <h:commandButton value="Ingresar" action="#{loginMB.checkUser}" />
                    </h:panelGrid>
                </rich:panel>
            </h:form>
        </f:view>
    </body>
</html>
